a = input("输入一个字符串：")

def countNum(str):
    dict = {}
    for i in str:
        dict[i] = dict.get(i, 0) + 1
    return dict

str1 = countNum(a)
print(str1)
